
# command line tools
xcode-select --install

# https://brew.sh/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/xp/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

# rosetta, since M1
softwareupdate --install-rosetta --agree-to-license

# refresh macOS built-in tools
brew install \
    bash \
    curl \
    git git-lfs \
    ruby \
    vim \
    zsh

brew install --cask iterm2
brew install --cask visual-studio-code
brew install --cask microsoft-edge google-chrome firefox

brew install shadowsocks-rust v2ray-core

# common tools
brew install \
    caddy \
    frpc frps \
    git-interacive-rebase-tool \
    htop \
    postgresql@17 \
    pyenv \
    redis \
    socat \
    sqlite \
    tmux

# handy CUI
brew install bat

# S.M.A.R.T. disk monitoring
brew install smartmontools

# LLM starter
# brew install ollama

# docker + docker-desktop alternative
# brew install --cask orbstack

# 功耗监控
brew install --cask mx-power-gadget

# 开源的系统监控
brew install --cask stats

# https://mounty.app/
brew install --cask macfuse
brew install gromgit/fuse/ntfs-3g-mac
brew install --cask mounty

brew install --cask pycharm

# 日用
#

brew install --cask iina # 媒体播放器
brew install --cask jolpin # 笔记
brew install --cask lark
brew install --cask moonlight # 串流
brew install --cask rustdesk # 远程桌面
brew install --cask snipaste # 截图器
brew install --cask siyuan # 思源笔记
brew install --cask thorium # 阅读器
brew install --cask vlc # 媒体播放器
brew install --cask vnc-viewer

# 修改系统设置 > 隐私与安全性
#
# 完全磁盘访问权限
#     iTerm2
#     sshd-keygen-wrapper
#     Visual Studio Code
